package homework;

public class NewYearCountDown {
    public static void main(String[] args) {

        new Thread("新年倒计时"){
            @Override
            public void run() {
                for (int i = 10; i > 0; i--) {
                    try {
                        System.out.println(i);
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
                System.out.println("新年快乐！！！");
            }
        }.start();

    }
}
